<?php

include_once('admin/structures/tableEditors.php');
include_once('admin/structures/editorFields.php');

class adminGames extends simpleTableEditor
{
    //construct games object
    function adminGames()
    {
        global $lang;

        $this->simpleTableEditor(GAMES_TABLE, 'games', 'Game',  $lang['GameExplanation'], true, true);
        $this->addColumn(new fieldId('g_id'));
        $this->addColumn(new fieldTitle($lang['FullTitle'],'g_name','',45));
        $this->addColumn(new fieldText($lang['ShortTitle'],'g_shortname','',3));
        $logoThmb = new fieldDummy('g_logoThmb');
        $this->addColumn(new fieldImage($lang['Logo'],'g_logo','','game',200,150, false, true, $logoThmb, 80, 60));
        $this->addColumn($logoThmb);
        $this->doStuff();

    }
}

?>
